﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Text;
using ProcessControl;

namespace ServerPayRequest    
{ 
    public partial class NewRequest : System.Web.UI.Page
    {
       
        protected void Page_Load(object sender, EventArgs e)
        {
            ((ButtonList_TY)ButtonList1).BeforeSubmit += new System.ComponentModel.CancelEventHandler(NewRequest_BeforeSubmit);
        }

        void NewRequest_BeforeSubmit(object sender, System.ComponentModel.CancelEventArgs e)
        { 
            
        }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            UserInfo_TY userInfo = Page.FindControl("UserInfo1") as UserInfo_TY;
            userInfo.AddNewRow(fld_detail_PROC_SERVERPAYREQUEST_DETAIL);
        }

        protected void fld_detail_PROC_SERVERPAYREQUEST_DETAIL_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            UserInfo_TY userInfo = Page.FindControl("UserInfo1") as UserInfo_TY;
            userInfo.DeleteRow(fld_detail_PROC_SERVERPAYREQUEST_DETAIL, e);
        }
    
    }
}